<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use \Think\Route;
Route::rule('notify/:appid/callback','notify/event/index');//微信公众号事件推送
Route::rule('notify/wechat','api/notify/wechat');//支付事件
//Route::rule('notify/wechat','api/notify/refund');//退款事件
Route::rule('notify/money','api/notify/money');//红包支付事件
Route::rule('notify/video','api/notify/video');//视频支付事件
Route::rule('notify/alipaycallback','api/notify/alipaycallback');//分公司支付事件
Route::rule('notify/shoufei','api/notify/shoufei');//收费
Route::rule('notify/goodsclasses','api/notify/goodsclasses');//课程订单付费
Route::rule('api/game/detail','api/game/detail');//收费
return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
];
